home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
ISATTY.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
272 b
|
14 lines
/* isatty.c, from page 360 of Turbo C Bible */
#include <stdio.h>
#include <io.h>
main ()
{
if (! isatty (fileno (stdout)))
{
printf ("stdout redirected to a file\n");
}
else
{
printf ("Executing in interactive mode\n");
}
}